package com.forum.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import org.springframework.stereotype.Component;

import java.time.*;
@Component
public class Follows {
    @TableId(type = IdType.AUTO)
    private Integer id; // 记录ID
    private Integer followerId; // 关注者用户ID
    private Integer followedId; // 被关注用户ID
    private LocalDateTime createdAt; // 关注时间

    public Integer getId() { return id; }
    public void setId(Integer id) { this.id = id; }
    public Integer getFollowerId() { return followerId; }
    public void setFollowerId(Integer followerId) { this.followerId = followerId; }
    public Integer getFollowedId() { return followedId; }
    public void setFollowedId(Integer followedId) { this.followedId = followedId; }
    public LocalDateTime getCreatedAt() { return createdAt; }
    public void setCreatedAt(LocalDateTime createdAt) { this.createdAt = createdAt; }
}
